﻿namespace Deppton.Mobile
{
    using Deppton.Model;

    public static class ModelExtensions
    {
        public static string ToFriendlyStatus(this SurveyStatus status)
        {
            // TODO: Move strings to resources.
            switch (status)
            {
                case SurveyStatus.Completed:
                    return "Finished";
                case SurveyStatus.Expired:
                    return "Expired";
                case SurveyStatus.Locked:
                    return "Blocked";
                case SurveyStatus.NotAvailable:
                    return "Unavailable";
                case SurveyStatus.Pending:
                    return "Pending";
                default:
                    return "No information";
            }
        }
    }
}
